home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Video Toaster 4.0
/
Video Toaster v4.0.iso
/
arexx
/
editor
/
flylaps.rexx
next >
Wrap
OS/2 REXX Batch file
|
1995-03-07
|
2KB
|
83 lines
/* FlyLapse.rexx -- Record frames at intervals of 1 to 60 mins */
/* By Arnie Cachelin © 1992 NewTek Inc. */
/* 4.0'ised by Bob Caron, Flyer versioned by Arnie again */
OPTIONS RESULTS
TOASTERLIB="ToasterARexx.port"
REXXLIB = "rexxsupport.library"
call remlib('ToasterARexx.port')
call remlib('PROJECT_REXX_PORT')
call addlib('PROJECT_REXX_PORT' , 0)
call set_view(2)
if req_tell("Flyer TimeLapse 2.0") = 0 then call quit
rx startfilereq("Save Clip Where?","FlyerA:","TimeLapse")
exit=1
do while exit=1
name=queryfilereq()
if name=0 then call quit
if name~="" then exit=0
address command "c:wait 1"
say name
end
delay=0
do while(delay<1)
delay=req_number("Delay In Seconds",'5')
end
tdelay=delay
rdelay=0
do while(rdelay<1)
rdelay=req_number("Record Time In Seconds",'5')
end
trdelay=rdelay
count=0
do while(count<1)
count=req_number("Number Of Colorframes To Grab",100)
if count=0 then call quit
end
if delay="" then delay = 1
if delay<1 then delay = 1
if delay>60 then delay = 60
if rdelay="" then rdelay = 1
if rdelay<1 then rdelay = 1
if rdelay>60 then rdelay = 60
if count="" then count=10
if count>1000 then count=1000
if name="" then name=left(date(),6)
delay=delay*30 /* delay in minutes x 60s/min x 30f/s = delay in frames */
rdelay=rdelay*30 /* delay in minutes x 60s/min x 30f/s = delay in frames */
if req_tell("Still want to continue?")=0 then call quit
IF ~ADDLIB(TOASTERLIB , 0) THEN x=Bummer(" Please start your Video Toaster!")
call RECORDCLIP(TimeLapse)
call RECORDPAUSE(1)
do f=0 to count
say f
call RECORDPAUSE(0)
address command "c:wait "||trdelay
call RECORDPAUSE(1)
address command "c:wait "||tdelay
end
call RECORDSTOP()
call MAKEICON(TimeLapse)
call req_tell("All done!")
quit
exit
quit: PROCEDURE
call req_tell("Canceled!")
call remlib('ToasterARexx.port')
call remlib('PROJECT_REXX_PORT')
exit